﻿using Infrastructure.AggregateBase;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

[Table("Role")]
public class RoleAggregate : AggregateRoot<RoleAggregate, int>
{
    [Key]
    [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
    public override int ID { get; set; }
    /// <summary>
    /// 角色名
    /// </summary>
    [StringLength(255)]
    public string Name { get; set; }
    /// <summary>
    /// 角色权限路径
    /// </summary>
    [StringLength(5000)]
    public string RolePermissions { get; set; }

    /// <summary>
    /// 状态 0正常 1冻结
    /// </summary>
    public int Status { get; set; }

}

